package cn.openea.perpartner.meily.web.mapper;

import cn.openea.perpartner.meily.web.entity.Customer;
import cn.openea.perpartner.meily.web.entity.vo.CustomerSearchVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author ysk
 * @email zane_ysk@qq.com
 * @date 2023-04-27 19:04:05
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

    /**
     * 查询数据列表
     */
    List<Customer> selectListBySerchVO(CustomerSearchVo searchVo);

    /**
     * 统计出客户的每种类型的数量
     */
    Map<String, Integer> countCustomerTypeQuantity(CustomerSearchVo searchVo);

    /**
     * 同步个人信息表的微信订阅
     */
    void syncWxSubscribe();
}
